package com.tinyspring.advisor;

import java.lang.reflect.Method;

/**
 * @author: TianYuan
 * @description: 切面通知器
 * @version: 1.0
 */
public class Advisor {

    /**
     * 切面对象
     */
    private Object aspectBean;

    /**
     * 切面方法
     */
    private Method adviceMethod;

    /**
     * 切点的表达式
     */
    private String pointcutExpression;

    /**
     * 切面类型
     */
    private AdviceType adviceType;

    public Object getAspectBean() {
        return aspectBean;
    }

    public void setAspectBean(Object aspectBean) {
        this.aspectBean = aspectBean;
    }

    public Method getAdviceMethod() {
        return adviceMethod;
    }

    public void setAdviceMethod(Method adviceMethod) {
        this.adviceMethod = adviceMethod;
    }

    public String getPointcutExpression() {
        return pointcutExpression;
    }

    public void setPointcutExpression(String pointcutExpression) {
        this.pointcutExpression = pointcutExpression;
    }

    public AdviceType getAdviceType() {
        return adviceType;
    }

    public void setAdviceType(AdviceType adviceType) {
        this.adviceType = adviceType;
    }
}
